package com.xuecheng;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author FengHuan Wang
 * @Date 2025/3/29 8:03
 * @Version 1.0
 */
@SpringBootApplication
@EnableSwagger2Doc
public class ContentApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(ContentApplication.class, args);
        String activeProfile = context.getEnvironment().getActiveProfiles()[0];
        System.out.println("Active Profile: " + activeProfile);

    }
}
